package com.itheima.day03.ZuoYe.ZuoYe4;

public class Test {
    public static void main(String[] args) {
        Staff staff = new Staff();
        Animal1 A = new Dog();
        Animal1 B = new Cat();
        Animal1 C = new Pig();
        staff.work(A);
        staff.work(B);
        staff.work(C);
    }
}
